<!--
 * @Author: 张瑞
 * @Date: 2021-10-30 14:59:07
 * @LastEditors: huangl
 * @LastEditTime: 2022-01-10 15:20:44
 * @Description: file content
 * @FilePath: \vue2xComponents\src\modules\demo\views\cbA\cp5\cp5.vue
-->
<template>
  <div id="test"></div>
</template>

<script>
import QRCode from "qrcodejs2";
export default {
  mounted() {
    let code = new QRCode("test", {
      text: "123456",
      width: 128,
      height: 128,
      colorDark: "#000000",
      colorLight: "#ffffff",
      correctLevel: QRCode.CorrectLevel.H,
    });
    console.log(code);
  },
};
</script>
<style lang="scss" scoped>
.container {
  width: 100%;
  height: 200px;
}
</style>